package ${packageConfig.entityPackage};

<#if entityConfig.superClassName??>
<#if packageConfig.entityPackage != entityConfig.superClassPackage>
import ${entityConfig.superClassImportPackage};
</#if>
</#if>
<#list table.importPackages as pkg>
import ${pkg};
</#list>
<#if entityConfig.enableLombok>
import lombok.Data;
</#if>

/**
 * <p>
 * ${table.comment!} 实体
 * </p>
 *
 * @author ${javadocConfig.author}
 * @since ${javadocConfig.since}
 */
<#list table.annotations as annotation>
${annotation}
</#list>
<#if entityConfig.superClassName??>
public class ${table.entityClassName} extends ${entityConfig.superClassName} {
<#else>
public class ${table.entityClassName} {
</#if>
<#list table.columns as column>

    /**
     * ${column.comment!}
     */
    <#list column.annotations as annotation>
    ${annotation}
    </#list>
    private ${column.propClassName} ${column.propName};
</#list>
<#if !entityConfig.enableLombok>

  <#list table.columns as column>
    public ${column.propClassName} ${column.getterMethodName}() {
        return ${column.propName};
    }

    public void ${column.setterMethodName}(${column.propClassName} ${column.propName}) {
        this.${column.propName} = ${column.propName};
    }
  </#list>
</#if>

}
